Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Dockerfile with CUDA support #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

canardleteer
Copy link

Threw together a way to run this with OpenCL in a container.

- Multistage build, runtime still larger than it could be.
@10gic
Copy link
Owner

10gic commented Dec 20, 2022

I tested it, it compiles fine, but it doesn't run.
OS Version: macOS Monterey
Docker Version: Docker Desktop 4.12.0

$ sudo docker run -it --network none --gpus all vanitygen-plusplus:latest 1Love
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown.
ERRO[0000] error waiting for container: context canceled

There are other people on the Internet who have encountered similar problems:
https://forums.docker.com/t/nvidia-cuda-doesnt-work-on-docker-desktop-but-works-on-docker-engine/130668

@canardleteer
Copy link
Author

canardleteer commented Dec 20, 2022

I've only tested it against the NVIDIA container-toolkit on Ubuntu 22 (possibly 20 since I initially did it 5 months back) as the container host directly on x86 hardware, and am not familiar with the GPU pass-through runtimes for Docker on macOS at all... so I'm not too sure.

I suppose I could add a note that it's only been tested on Ubuntu 20/22? I also don't have macOS to experiment with.

Copy link

@Mohamadhosein369 Mohamadhosein369 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doctor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants